<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/network/qssl.cpp -->
<head>
  <title>Qt 4.3: QSsl Namespace Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">QSsl Namespace Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1>
<p>The QSsl namespace declares enums common to all SSL classes in <a href="qtnetwork.html">QtNetwork</a>. <a href="#details">More...</a></p>
<pre> #include &lt;QSsl&gt;</pre><p>This namespace was introduced in Qt 4.3.</p>
<ul>
</ul>
<a name="types"></a>
<h3>Types</h3>
<ul>
<li><div class="fn"/>enum <b><a href="qssl.html#AlternateNameEntryType-enum">AlternateNameEntryType</a></b> { EmailEntry, DnsEntry }</li>
<li><div class="fn"/>enum <b><a href="qssl.html#EncodingFormat-enum">EncodingFormat</a></b> { Pem, Der }</li>
<li><div class="fn"/>enum <b><a href="qssl.html#KeyAlgorithm-enum">KeyAlgorithm</a></b> { Rsa, Dsa }</li>
<li><div class="fn"/>enum <b><a href="qssl.html#KeyType-enum">KeyType</a></b> { PrivateKey, PublicKey }</li>
<li><div class="fn"/>enum <b><a href="qssl.html#SslProtocol-enum">SslProtocol</a></b> { SslV3, SslV2, TlsV1, UnknownProtocol, AnyProtocol }</li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QSsl namespace declares enums common to all SSL classes in <a href="qtnetwork.html">QtNetwork</a>.</p>
<hr />
<h2>Type Documentation</h2>
<h3 class="fn"><a name="AlternateNameEntryType-enum"></a>enum QSsl::AlternateNameEntryType</h3>
<p>Describes the key types for alternate name entries in <a href="qsslcertificate.html">QSslCertificate</a>.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSsl::EmailEntry</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">An email entry; the entry contains an email address that the certificate is valid for.</td></tr>
<tr><td valign="top"><tt>QSsl::DnsEntry</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">A DNS host name entry; the entry contains a host name entry that the certificate is valid for. The entry may contain wildcards.</td></tr>
</table></p>
<p>See also <a href="qsslcertificate.html#alternateSubjectNames">QSslCertificate::alternateSubjectNames</a>().</p>
<h3 class="fn"><a name="EncodingFormat-enum"></a>enum QSsl::EncodingFormat</h3>
<p>Describes supported encoding formats for certificates and keys.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSsl::Pem</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The PEM format.</td></tr>
<tr><td valign="top"><tt>QSsl::Der</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The DER format.</td></tr>
</table></p>
<h3 class="fn"><a name="KeyAlgorithm-enum"></a>enum QSsl::KeyAlgorithm</h3>
<p>Describes the different key algorithms supported by <a href="qsslkey.html">QSslKey</a>.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSsl::Rsa</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The RSA algorithm.</td></tr>
<tr><td valign="top"><tt>QSsl::Dsa</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The DSA algorithm.</td></tr>
</table></p>
<h3 class="fn"><a name="KeyType-enum"></a>enum QSsl::KeyType</h3>
<p>Describes the two types of keys <a href="qsslkey.html">QSslKey</a> supports.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSsl::PrivateKey</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">A private key.</td></tr>
<tr><td valign="top"><tt>QSsl::PublicKey</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">A public key.</td></tr>
</table></p>
<h3 class="fn"><a name="SslProtocol-enum"></a>enum QSsl::SslProtocol</h3>
<p>Describes the protocol of the cipher.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSsl::SslV3</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">SSLv3 - the default protocol.</td></tr>
<tr><td valign="top"><tt>QSsl::SslV2</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">SSLv2</td></tr>
<tr><td valign="top"><tt>QSsl::TlsV1</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">TLSv1</td></tr>
<tr><td valign="top"><tt>QSsl::UnknownProtocol</tt></td><td align="center" valign="top"><tt>-1</tt></td><td valign="top">The cipher's protocol cannot be determined.</td></tr>
<tr><td valign="top"><tt>QSsl::AnyProtocol</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The socket understands SSLv2, SSLv3, and TLSv1. This value is used by <a href="qsslsocket.html">QSslSocket</a> only.</td></tr>
</table></p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
